package com.lottery.ruok.lottrey.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;

/**
 * 作者：lm
 * <p>
 * 创建日期：2018/8/17$
 * <p>
 * 描述：长龙模式fragment适配器
 */
public class ChangLongFragmentAdapter extends FragmentPagerAdapter {
    private ArrayList<Fragment> fragmentList;
    public ChangLongFragmentAdapter(FragmentManager fm, ArrayList<Fragment> fragmentList) {
        super(fm);
        this.fragmentList = fragmentList;
    }

    @Override
    public Fragment getItem(int position) {
        return fragmentList.get(position);
    }

    @Override
    public int getCount() {
        return fragmentList.size();
    }
   /* @Override
    public CharSequence getPageTitle(int position) {
        return titleList.get(position);
    }*/
}
